Skip to content

Add nightly CodeQL CLI update workflow#58

Merged
data-douser merged 6 commits intomainfrom
dd/test-release-workflow/2
Feb 19, 2026
Merged

Add nightly CodeQL CLI update workflow#58
data-douser merged 6 commits intomainfrom
dd/test-release-workflow/2

Conversation

@data-douser
Copy link
Copy Markdown
Collaborator

Summary of Changes

This pull request introduces a new GitHub Actions workflow to automate the process of updating the CodeQL CLI dependency. The workflow detects new releases, updates relevant files, runs build and tests, and creates a pull request with the changes. This streamlines dependency management and ensures the project stays up-to-date with the latest CodeQL CLI releases.

Outline of Changes

Automation for CodeQL CLI updates:

  • Added .github/workflows/update-codeql.yml workflow to automatically detect new CodeQL CLI releases, update version-bearing files, install dependencies, run build and tests, and create a pull request for the upgrade.
  • The workflow includes two main jobs: detect-update (checks for new CodeQL CLI versions and determines if an update is needed) and create-pr (performs the update, builds, tests, and creates a PR if an update is detected).
  • Updates .codeql-version, package.json, and codeql-pack.yml files to the latest CodeQL CLI version, and regenerates package-lock.json as part of the automated update process.
  • Summarizes update status and changes in the workflow's job summaries, providing clear information about version changes and update actions.

Detect new CodeQL CLI releases and create a PR with updated
version files, rebuilt dependencies, and passing build/tests.
@data-douser data-douser self-assigned this Feb 17, 2026
Copilot AI review requested due to automatic review settings February 17, 2026 14:50
@data-douser data-douser added the enhancement New feature or request label Feb 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 17, 2026

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

License Issues

.github/workflows/update-codeql.yml

PackageVersionLicenseIssue Type
actions/checkout6.*.*NullUnknown License
actions/setup-node6.*.*NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 6.*.* 🟢 6.3
Details
CheckScoreReason
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Maintained🟢 57 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Code-Review🟢 10all changesets reviewed
Binary-Artifacts🟢 10no binaries found in the repo
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Packaging⚠️ -1packaging workflow not detected
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Branch-Protection🟢 6branch protection is not maximal on development and all release branches
SAST🟢 8SAST tool detected but not run on all commits
actions/actions/setup-node 6.*.* 🟢 5.9
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained🟢 810 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 8
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 9binaries present in source code
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Pinned-Dependencies⚠️ 0dependency not pinned by hash detected -- score normalized to 0
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Branch-Protection⚠️ 1branch protection is not maximal on development and all release branches
SAST🟢 9SAST tool is not run on all commits -- score normalized to 9
actions/peter-evans/create-pull-request c0f553fe549906ede9cf27b5156039d195d2ece0 🟢 5.1
Details
CheckScoreReason
Code-Review🟢 3Found 4/11 approved changesets -- score normalized to 3
Maintained🟢 1017 commit(s) and 21 issue activity found in the last 90 days -- score normalized to 10
Binary-Artifacts🟢 10no binaries found in the repo
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Packaging⚠️ -1packaging workflow not detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
License🟢 10license file detected
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
Fuzzing⚠️ 0project is not fuzzed
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ -1internal error: error during branchesHandler.setup: internal error: some github tokens can't read classic branch protection rules: https://github.com/ossf/scorecard-action/blob/main/docs/authentication/fine-grained-auth-token.md
Security-Policy⚠️ 0security policy file not detected
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
Vulnerabilities🟢 91 existing vulnerabilities detected

Scanned Files

  • .github/workflows/update-codeql.yml

Comment thread .github/workflows/update-codeql.yml Fixed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces an automated GitHub Actions workflow to detect new CodeQL CLI releases and create pull requests with the necessary version updates. The workflow runs nightly via cron schedule and can also be triggered manually, checking the latest CodeQL CLI version from github/codeql-cli-binaries and orchestrating version updates across multiple files if a newer version is detected.

Changes:

  • Added a new workflow with two jobs: one to detect new CodeQL CLI versions and another to perform the update, build, test, and create a pull request
  • The workflow updates .codeql-version, package.json files, and codeql-pack.yml files, regenerates the lockfile, and validates changes through the full build-and-test suite
  • Includes comprehensive inline documentation and job summaries for observability

Comment thread .github/workflows/update-codeql.yml
Comment thread .github/workflows/update-codeql.yml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nathan Randall <70299490+data-douser@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 19, 2026 02:59
Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

@data-douser I've opened a new pull request, #60, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/update-codeql.yml
data-douser and others added 2 commits February 18, 2026 20:32
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nathan Randall <70299490+data-douser@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 19, 2026 03:34
* Initial plan

* Add validation for empty latest_tag in update-codeql workflow

Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Comment thread .github/workflows/update-codeql.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/update-codeql.yml
Signed-off-by: Nathan Randall <70299490+data-douser@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 19, 2026 03:38
@data-douser data-douser marked this pull request as ready for review February 19, 2026 03:39
@data-douser data-douser requested review from a team and enyil as code owners February 19, 2026 03:39
@data-douser data-douser merged commit f8b63a3 into main Feb 19, 2026
11 checks passed
@data-douser data-douser deleted the dd/test-release-workflow/2 branch February 19, 2026 03:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +57 to +61
if [ -z "${latest_tag}" ]; then
echo "❌ ERROR: Failed to determine latest CodeQL CLI release. 'gh release list' returned no results or no release is marked as latest." >&2
echo "update_needed=false" >> $GITHUB_OUTPUT
exit 1
fi
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This validation check is redundant. The same condition ([ -z "${latest_tag}" ]) was already checked at lines 49-53, and the workflow exits with exit 1 if true. This second check at lines 57-61 will never execute because if latest_tag is empty, the script would have already exited at line 52. Remove this duplicate validation block.

Suggested change
if [ -z "${latest_tag}" ]; then
echo "❌ ERROR: Failed to determine latest CodeQL CLI release. 'gh release list' returned no results or no release is marked as latest." >&2
echo "update_needed=false" >> $GITHUB_OUTPUT
exit 1
fi

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants